package org.ftc.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

@MappedSuperclass
public class BasicEntity {
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATION_DATE" ) 
	private Date creationDate;
	 
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "MODIFY_DATE" ) 
	private Date modifyDate;
	
	@Column(name = "MODIFY_USER" , length = 50 ) 
	private String modifyUser;
	
	@Column(name = "CREATION_USER" , length = 50) 
	private String creationUser;
	
	@Version
	@Column(name = "VERSION" )
	private Integer version;

	public Date getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getModifyUser() {
		return modifyUser;
	}

	public void setModifyUser(String modifyUser) {
		this.modifyUser = modifyUser;
	}

	public String getCreationUser() {
		return creationUser;
	}

	public void setCreationUser(String creationUser) {
		this.creationUser = creationUser;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}
	
	
}
